package com.gxa.logistics.common.base;

import lombok.Data;

import java.io.Serializable;

@Data
public class R implements Serializable {
    private Integer code;
    private String msg;
    private Object data;

    public static R success(){
        R r = new R();
        r.setCode(200);
        r.setMsg("success");
        return r;
    }

    public static R success(Object data){
        R r = success();
        r.setData(data);
        return r;
    }

}
